(function() {
  define(function(require, exports, module) {
    var Survey;
    return Survey = Backbone.Model.extend({
      init: function() {},
      load_list: function(option) {
        console.log('load list');
        return $.get('/api/survey/list', {}, function(res) {
          if (res.response.code === 0) {
            return Backbone.trigger('event_load_list_success', res.data);
          } else {
            return console.log(res);
          }
        });
      },
      create_survey: function(data) {
        return console.log(data);
      },
      delete_survey_quesiton: function(survey_id, question_id) {
        return console.log(project_id);
      },
      update_survey_quesiton: function(survey_id, question_id, data) {
        return console.log(data);
      },
      read_survey: function(survey_id) {
        return $.get('/api/survey/read', {
          id: survey_id
        }, function(res) {
          console.log(res);
          if (res.response.code === 0) {
            return Backbone.trigger('event_read_survey_success', res.data);
          } else {
            return console.log(res);
          }
        });
      }
    });
  });

}).call(this);
